-
Notifications
You must be signed in to change notification settings - Fork 345
🍒 [windows][lldb] implement system logging on Windows (#150213) #11096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: swift/release/6.2
Are you sure you want to change the base?
Conversation
charles-zablit
commented
Jul 31, 2025
- [windows][lldb] implement system logging on Windows llvm/llvm-project#150213
This patch makes LLDB use the Event Viewer on Windows (equivalent of system logging on Darwin) rather than piping to the standard output (which was deactivated in ca0a524.
@swift-ci please test |
@swift-ci please test windows |
@swift-ci please test |
@swift-ci please test Windows |
@swift-ci please test windows |
@swift-ci please test Windows |
event_type = EVENTLOG_INFORMATION_TYPE; | ||
} | ||
|
||
ReportEventW(h, event_type, 0, 0, nullptr, 1, 0, &msg_ptr, nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really the best place to put the messages? The Event Log is for system events, this feels more developer oriented and feels like the kernel debug buffer might be better (OutputDebugStringA
).
std::wstring unicode(unicode_length, L'\0'); | ||
MultiByteToWideChar(CP_ACP, 0, ansi.c_str(), -1, &unicode[0], unicode_length); | ||
return unicode; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why re-implement UTF8ToUTF16
and UTF16ToUTF8
from LLVM?